import { useNamespace } from '@/utils'
import type { ExtractProps } from '@/utils/type'

export namespace variables {
  export const ns = useNamespace('Option')
}
export namespace OptionNS {
  export const name = variables.ns.name
  export const props = {
    value: {
      type: [Number, Boolean, String, Object],
      required: true as const
    },
    disabled: Boolean,
    label: [String, Number]
  } 
  export type Props = ExtractProps.Types<typeof props>
  export const Component = <{
    new(): {
      $props: Props
    }
  }>{}
}